/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.hotel.test.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * This class is used by SOAP remote services.
 *
 * @author    Vien-IT
 * @generated
 */
public class BookingSoap implements Serializable {
	public static BookingSoap toSoapModel(Booking model) {
		BookingSoap soapModel = new BookingSoap();

		soapModel.setBookId(model.getBookId());
		soapModel.setUserId(model.getUserId());
		soapModel.setUserName(model.getUserName());
		soapModel.setCreateDate(model.getCreateDate());
		soapModel.setModifiedDate(model.getModifiedDate());
		soapModel.setNamePersonBooking(model.getNamePersonBooking());
		soapModel.setNumberPhone(model.getNumberPhone());
		soapModel.setEmailBooking(model.getEmailBooking());
		soapModel.setAddress(model.getAddress());
		soapModel.setNumberOfGuest(model.getNumberOfGuest());
		soapModel.setOtherRequest(model.getOtherRequest());
		soapModel.setDayStart(model.getDayStart());
		soapModel.setDayFinish(model.getDayFinish());
		soapModel.setHotelId(model.getHotelId());
		soapModel.setRomId(model.getRomId());

		return soapModel;
	}

	public static BookingSoap[] toSoapModels(Booking[] models) {
		BookingSoap[] soapModels = new BookingSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static BookingSoap[][] toSoapModels(Booking[][] models) {
		BookingSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new BookingSoap[models.length][models[0].length];
		}
		else {
			soapModels = new BookingSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static BookingSoap[] toSoapModels(List<Booking> models) {
		List<BookingSoap> soapModels = new ArrayList<BookingSoap>(models.size());

		for (Booking model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new BookingSoap[soapModels.size()]);
	}

	public BookingSoap() {
	}

	public long getPrimaryKey() {
		return _bookId;
	}

	public void setPrimaryKey(long pk) {
		setBookId(pk);
	}

	public long getBookId() {
		return _bookId;
	}

	public void setBookId(long bookId) {
		_bookId = bookId;
	}

	public long getUserId() {
		return _userId;
	}

	public void setUserId(long userId) {
		_userId = userId;
	}

	public String getUserName() {
		return _userName;
	}

	public void setUserName(String userName) {
		_userName = userName;
	}

	public Date getCreateDate() {
		return _createDate;
	}

	public void setCreateDate(Date createDate) {
		_createDate = createDate;
	}

	public Date getModifiedDate() {
		return _modifiedDate;
	}

	public void setModifiedDate(Date modifiedDate) {
		_modifiedDate = modifiedDate;
	}

	public String getNamePersonBooking() {
		return _namePersonBooking;
	}

	public void setNamePersonBooking(String namePersonBooking) {
		_namePersonBooking = namePersonBooking;
	}

	public String getNumberPhone() {
		return _numberPhone;
	}

	public void setNumberPhone(String numberPhone) {
		_numberPhone = numberPhone;
	}

	public String getEmailBooking() {
		return _emailBooking;
	}

	public void setEmailBooking(String emailBooking) {
		_emailBooking = emailBooking;
	}

	public String getAddress() {
		return _address;
	}

	public void setAddress(String address) {
		_address = address;
	}

	public int getNumberOfGuest() {
		return _numberOfGuest;
	}

	public void setNumberOfGuest(int numberOfGuest) {
		_numberOfGuest = numberOfGuest;
	}

	public String getOtherRequest() {
		return _otherRequest;
	}

	public void setOtherRequest(String otherRequest) {
		_otherRequest = otherRequest;
	}

	public String getDayStart() {
		return _dayStart;
	}

	public void setDayStart(String dayStart) {
		_dayStart = dayStart;
	}

	public String getDayFinish() {
		return _dayFinish;
	}

	public void setDayFinish(String dayFinish) {
		_dayFinish = dayFinish;
	}

	public long getHotelId() {
		return _hotelId;
	}

	public void setHotelId(long hotelId) {
		_hotelId = hotelId;
	}

	public long getRomId() {
		return _romId;
	}

	public void setRomId(long romId) {
		_romId = romId;
	}

	private long _bookId;
	private long _userId;
	private String _userName;
	private Date _createDate;
	private Date _modifiedDate;
	private String _namePersonBooking;
	private String _numberPhone;
	private String _emailBooking;
	private String _address;
	private int _numberOfGuest;
	private String _otherRequest;
	private String _dayStart;
	private String _dayFinish;
	private long _hotelId;
	private long _romId;
}